package cn.pzhu.pserson.dto;

import cn.pzhu.pserson.util.BeanUtil;
import cn.pzhu.pserson.model.Music;
import java.io.Serializable;


public class MusicDTO implements Serializable {
        
        private static final long serialVersionUID = 1L;
        
        private String name;
        
        public String getName() {
            return this.name;
        }
        
        public void setName(String name) {
            this.name = name;
        }
        
        public Music toModel() {
            Music model = new Music();
			BeanUtil.convert(this, model);
			return model;
        }
    
}